using System;
using System.Runtime.Serialization;
using System.Collections.Generic;
namespace TicketSellerService
{
	[DataContract(Name="flight")]
	public class Flight
	{
		[DataMember]
		public int flightNumber { set; get;}
		
		[DataMember]
		public string source { set; get;}
		
		[DataMember]
		public string destination { set; get;}
		
		[DataMember]
		public DateTime date { set; get;}
		
		[DataMember]
		public int seatsCount { set; get;}
		
		[DataMember]
		public double price { set; get;}
	}
	
	[Serializable]
	[CollectionDataContract(Name="availableFlight", ItemName="flight")]
	public class AvailableFlights : List<Flight> {
		public AvailableFlights( ) { }
		public AvailableFlights( List<Flight> flights) : base( flights) { }
	}
}

